#!/usr/bin/env bash


#git clone https://gitee.com/rymmx_admin/smtp2postfix.git
git pull

echo 'postfix status'
postfix status

echo '/root/smtp2postfix/supervisord.sh restart'
/root/smtp2postfix/supervisord.sh stop
sleep 3
/root/smtp2postfix/supervisord.sh start
sleep 3
/root/smtp2postfix/supervisord.sh status
/usr/bin/netstat -lnpt


#/usr/bin/tail -f /root/smtp2postfix/smtpProxy.log
/usr/bin/tail -f /var/log/maillog